﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NewAI.Game;
namespace NewAI.FSM.TankFSM
{
    public class ResetPublicVariableState : State<TankAI>
    {
        LegStartData legStartData;
        public ResetPublicVariableState(LegStartData legStartData)
        {
            this.legStartData = legStartData;
            GV.tankCount = 4;
        }

        public override void Enter(TankAI entity)
        {
            entity.ThreatDegree = 1;
            entity.IsSurvival = true;
        }

        public override void Exit(TankAI entity)
        {
            legStartData = null;
        }
    }
}
